#include<stdio.h>
int main()
{
	int n,x,y;
	scanf("%d %d %d",&n,&x,&y);
	int max,min;
	if(x>=y)
	{
		max=y;	
	}
	else
	{
		max=x;
	}
	
	if(x+y<n)
	{
		min=0;
	}
	else
	{
		min=x+y-n;
	}
	printf("%d %d",max,min);
	return 0;
}
